<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	
	String orderId = request.getParameter("orderId");
	String orderKey = request.getParameter("orderKey");
	
	if (orderId == null || orderId.trim().equals("")) {
		request.getRequestDispatcher("/webpay/error/order_invalid.html")
				.forward(request, response);
	}

	if (orderKey == null || orderKey.trim().equals("")) {
		request.getRequestDispatcher("/webpay/error/order_invalid.html")
				.forward(request, response);
	}
	
	request.getSession(true).setAttribute("orderId", orderId);
	request.getSession(true).setAttribute("orderKey", orderKey);
	
	request.setAttribute("on_back","0");
%>
<!DOCTYPE html>
<html lang="zh">
<head>
<base href="<%=basePath%>">
<%
	out.write("<script type=\"text/javascript\">var orderId = '"
			+ orderId + "';\nvar orderKey = '" + orderKey
			+ "';</script>");
%>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title>订单详情</title>

<meta name="description" content="Common form elements and layouts" />
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<script type="text/javascript" src="js/jquery-1.7.1.min.js"
	charset="UTF-8"></script>

<script type="text/javascript" src="js/core-1.0.js" charset="UTF-8"></script>
<script type="text/javascript" src="js/webpay/order_pay.js"
	charset="UTF-8"></script>

<script type="text/javascript">
	getOrderInfo();// 初始化订单信息
</script>

<!-- bootstrap & fontawesome -->
<link rel="stylesheet" href="ace_v1.3/assets/css/bootstrap.css" />

<link rel="stylesheet" href="ace_v1.3/assets/css/chosen.css" />

<!-- text fonts -->
<link rel="stylesheet" href="ace_v1.3/assets/css/ace-fonts.css" />

<!-- ace styles -->
<link rel="stylesheet" href="ace_v1.3/assets/css/ace.css"
	class="ace-main-stylesheet" id="main-ace-style" />

<!--[if lte IE 9]>
			<link rel="stylesheet" href="ace_v1.3/assets/css/ace-part2.css" class="ace-main-stylesheet" />
		<![endif]-->

<!--[if lte IE 9]>
		  <link rel="stylesheet" href="ace_v1.3/assets/css/ace-ie.css" />
		<![endif]-->



<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

<!--[if lte IE 8]>
		<script src="ace_v1.3/assets/js/html5shiv.js"></script>
		<script src="ace_v1.3/assets/js/respond.js"></script>
		<![endif]-->
<jsp:include page="head-include.jsp"/>
</head>

<body class="no-skin">
	<!-- #section:basics/navbar.layout -->
	<jsp:include page="title.jsp"/>

	<!-- /section:basics/navbar.layout -->
	<div class="main-container" id="main-container">

		<!-- #section:basics/sidebar -->
		<!-- /section:basics/sidebar -->
		<div class="main-content">
			<div class="main-content-inner">
				<!-- #section:basics/content.breadcrumbs -->
				<!-- /section:basics/content.breadcrumbs -->
				<div class="page-content">
					<!-- #section:settings.box -->
					<!-- <div class="page-header">
						<h1>
							Form Elements <small> <i
								class="ace-icon fa fa-angle-double-right"></i> Common form
								elements and layouts
							</small>
						</h1>
					</div>
					 -->
					<!-- /.page-header -->
					<div class="row">
						<div class="col-xs-12">
							<!-- PAGE CONTENT BEGINS -->

							<table id="sample-table-1"
								class="table table-striped table-bordered table-hover orderPayTable">
								<tbody>
									<tr>
										<td class="td-label">商品名称</td>
										<td class="td-data" valueOf="{GOODS_NAME}"></td>
									</tr>
									<tr>
										<td class="td-label">订单金额</td>
										<td class="td-data" valueOf="{ORDAMT} 元"></td>
									</tr>
									<tr>
										<td class="td-label">订单状态</td>
										<td class="td-data" valueOf="{ORDSTATUSVAL}"></td>
									</tr>
									<tr>
										<td class="col-xs-6 td-label">商户名称</td>
										<td class="col-xs-6 td-data" valueOf="{CUST_NAME}"></td>
									</tr>
									<tr>
										<td class="td-label">商户号</td>
										<td class="td-data" valueOf="{CUST_ID}"></td>
									</tr>
									<tr>
										<td class="td-label">订单号</td>
										<td class="td-data" valueOf="{ORDERID}"></td>
									</tr>
									<tr>
										<td class="td-label">交易时间</td>
										<td class="td-data" style="font-size: 12px;font-weight: 500;" valueOf="{PAY_TIME}" init-format="dateFormat('{value}')"></td>
									</tr>
							</table>
						</div>
						<!-- /.col -->
					</div>
					<div class="order-desc">
						该订单是由口袋支付商户向您发的收款操作，付款成功后将从您的银行卡内扣除相应金额并转入商户账户，请确保您知晓该笔交易，切勿向来电陌生人泄露短信内容，谨防上当受骗，如有疑问欢迎您主动拨打口袋支付官方服务热线 400-999-4048  咨询或举报
					</div>
					<br/>
					<div class="row">
						<div class="col-xs-6">
							<button class="btn btn-info btn-block" type="button"
								 onclick="reLoad()" >
								<i class="ace-icon fa fa-check "></i> 重新加载
							</button>
						</div>
						<div class="order-tonext" style="display: none;">
							<div class="col-xs-6">
								<button class="btn btn-info btn-block  arrowed-right" type="button"
									 onclick="toPayPage()" >
									<i class="ace-icon fa fa-check "></i> 订单支付
								</button>
							</div>
						</div>
					</div>
					<!-- /.row -->
				</div>
				<!-- /.page-content -->
			</div>
		</div>
		<!-- /.main-content -->

	</div>
	<!-- /.main-container -->

	<!-- basic scripts -->

	<script type="text/javascript"
		src="ace_v1.3/assets/js/jquery.maskedinput.js" charset="UTF-8"></script>
	<script type="text/javascript" src="js/jquery.tips.js" charset="UTF-8"></script>
</body>
</html>
